<?php
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of viewActionclass
 *
 * @author Eshton
 */
class viewAction extends sfAction {
    public function execute($request) {
        if ($request->hasParameter('id')) {
            $id = $request->getParameter('id');
            $replay = ReplayPeer::retrieveByPK($id);

            if (!$replay) {
                $this->redirect('replay/browse');
            }

            $this->replay = $replay;
        } else {
            $this->redirect('replay/browse');
        }
    }
}
?>
